package org.example;

public class ThrowRejectHandler implements RejectHandler{
    @Override
    public void reject(Runnable runnable, MyThreadPool myThreadPool) {
           throw new RuntimeException("线程池已经慢了,请不要再添加了");
    }
}
